#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QObject>
#include <QThread>
#include <QDebug>

class myThread : public QObject
{
    Q_OBJECT
public:
    explicit myThread(QObject *parent = nullptr);
    // 线程处理函数
    void my_timeout();
    void setIsRunning(bool flag);
    bool getIsRunning();
signals :
    void my_signal();

private :
    bool is_running;

};

#endif // MYTHREAD_H
